package cn.itcast.domain;

import org.springframework.stereotype.Component;

@Component
public class Course {

    private Integer courseno;

    private String coursename;

    private Integer number;

    public Course() {

    }

    public Course(Integer courseno, String coursename, Integer number) {
        this.courseno = courseno;
        this.coursename = coursename;
        this.number = number;
    }

    public Integer getCourseno() {
        return courseno;
    }

    public void setCourseno(Integer courseno) {
        this.courseno = courseno;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseno=" + courseno +
                ", coursename='" + coursename + '\'' +
                ", number=" + number +
                '}';
    }
}
